// 多边形弹框
<template>
  <Modal v-on:hidden="$emit('hidden')">
    <div class="rectangle">
      <!-- 弹窗点击关闭事件 -->
      <p><img src="../assets/img/polygon/02.png" alt="" class="imgBtn_close" @click="$emit('hidden')" /></p>
      <div class="modal_box flexC">
        <!-- 组件的内容主体 -->
        <div class="flex1"><slot></slot></div>
      </div>
    </div>
  </Modal>
</template>
<script>
import Modal from './Modal'
export default {
  props: {
    title: {
      type: String,
      default: ''
    }
  },
  components: {
    Modal
  }
}
</script>
<style lang="scss" scoped>
.rectangle {
  width: 98.8125rem;
  height: 55.5625rem;
  position: absolute;
  top: 12%;
  left: 8%;
  background: url(../assets/img/polygon/08.png) no-repeat;
  background-size: 100% 100%;
  .imgBtn_close {
    cursor: pointer;
    position: absolute;
    top: 0%;
    right: 0%;
    z-index: 99;
  }
  .bgImg_toptitle {
    width: 100%;
    position: absolute;
    z-index: 0;
  }
  .modal_box {
    margin-top: 4.6875rem;
  }
}
</style>
